eventcontroller: Add vfuncs to (un)set widget
authorBenjamin Otte <otte@redhat.com>
Thu, 8 Mar 2018 02:30:44 +0000 (03:30 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 26 Apr 2018 15:59:41 +0000 (17:59 +0200)
commite01e9ce0923f7e8fbbdfd090189688561724f762
treef22788dae5d761579c284beb744965e2a6f97c41
parentb0bb7f3da4b174edc6e3e080849bf1ab950c3818
eventcontroller: Add vfuncs to (un)set widget

This is the first step towards refactoring how widgets deal with event
controllers.

In the future, the widget will treat controllers the same way it treats
child widgets:
1. The controllers will be created without a widget.
2. There will be gtk_widget_add/remove_controller() functions to add
   or remove controllers.
3. The widget will hold a reference to all its controllers.

This way we will ultimately be able to automate controllers with ui
files.
gtk/gtkeventcontroller.c
gtk/gtkeventcontrollerprivate.h
gtk/gtkwidget.c